home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
MEDICAL
/
2608A.ZIP
/
GP.ZIP
/
PREPORT.SRC
< prev
next >
Wrap
Text File
|
1990-11-03
|
3KB
|
209 lines
;\|
;PREPORT.SRC Translated from PREPORT.EDT by Roger Mathew's EDT2SRC Ver 4.11
;PREPORT 11:44:19 AM 25/ 9/90 |
DO_DEFINES:
define(TOT_RECORDS|N|8||)
define(PAGE|N|5||)
define(SELECT_FROM1|D|10||)
define(SELECT_THRU1|D|10||)
define(SELECT_FROM2|S|8||)
define(SELECT_THRU2|S|8||)
define(BREAK_FIELD|D| 10||)
define(TD|D|10||)
OPEN_FILES:
open(PATIENT|||)
open(RECALLS|||)
open(PAEDS|||)
trap(Q|G|EXIT)
date(TD|G)
MOUNT_SCR:
mount(SELECT|S)
START:
SELECT_FROM1 = (TD)
enter(SELECT_FROM1|||START|||||)
SELECT_THRU1 = (TD+2190)
enter(SELECT_THRU1||||||||)
MOUNT_RPT:
pchr(p|4)
pset(80|66|60)
trap(I|G|ABORT_RPT)
trap(R|S|DO_RELATED)
trap(P|S|PRT_TOF)
mount(PREPORT|R|A)
FIND_FIRST:
find(E|DATE.OF.BIRTH|NO_RECS|)
PRT_DETAIL:
if DATE.OF.BIRTH < (SELECT_THRU1) goto FINISH
gosub CHK_BREAK
pfmt(3||||)
TOT_RECORDS = (TOT_RECORDS + 1)
FIND_NEXT:
find(P|PATIENT|FINISH|)
goto PRT_DETAIL
ABORT_RPT:
pmsg(""|||N|N|D|)
pmsg(""|||N|N|D|)
pmsg(">>>>> Report was terminated before completion <<<<<"|||N|N|D|)
pmsg(""|||N|N|D|)
pmsg(""|||N|N|D|)
FINISH:
pblnk(2)
pmsg(" Total records printed: ";TOT_RECORDS|||N|N|D|)
trap(P|D)
ptof
EXIT:
run("recmenu")
DO_RELATED:
clr(RECALLS|B)
clr(PAEDS|B)
trap(R|D)
find(R|COD.REF|RECORD.NUMBER|NEXTONE|)
if COD.D[5] = (0) goto NEXTONE
find(R|P_COD|COD.REF|NEXTONE|)
NEXTONE:
trap(R|S|DO_RELATED)
ret
PRT_TOF:
pfmt(1||||)
pfmt(2||||)
ret
CHK_BREAK:
pfmt(4||||)
pfmt(5||||)
ret
NO_RECS:
MESSAGE[1] = ("There are no records in the primary file")
NUM.MSG = (1)
gosub PRT.MSG
goto EXIT
NO_RFIND:
MESSAGE[1] = ("A matching record was not found during a related find")
NUM.MSG = (1)
gosub PRT.MSG
goto EXIT
PRT.MSG:
define(LNE.LNGTH|N|2||)
define(LNE.LN2|N|2||)
define(NUM.MSG|N|2||)
define(MESSAGE|A|78||15)
define(ENT.MASK|A|10||)
define(LLC|N|2||)
define(WD|N|2||)
define(HT|N|2||)
define(MCNTR|N|5||)
define(MCNTR2|N|5||)
define(MCNTR3|N|5||)
define(MCNTR4|N|5||)
LNE.LNGTH = (0)
for(MCNTR|1|NUM.MSG|1)
{
LNE.LN2 =siz(A|MESSAGE[MCNTR])
if LNE.LN2 > (LNE.LNGTH) then LNE.LNGTH = (LNE.LN2)
}
NUM.MSG = (NUM.MSG + 1)
if LNE.LNGTH < (26) then LNE.LNGTH = (26)
LNE.LNGTH = (LNE.LNGTH + 4)
LLC = (40 - (LNE.LNGTH / 2))
HT = (NUM.MSG + 3)
WD = (LNE.LNGTH + 1)
saves(1)
window(LLC|24|HT|WD)
NUM.MSG = (NUM.MSG - 1)
pmsg(""||||||)
for(MCNTR|1|NUM.MSG|1)
{
pmsg(MESSAGE[MCNTR]|3||N|N|S|)
}
pmsg("Press any key to continue"|3||Y|N|S|)
redsp(1)
ret
\STSELECT
Selection Screen For Paediatric Survey
════════════════════════════════════════════════════════════════════════════════
Sort This Report By: DATE.OF.BIRTH
────────────────────────────────────────────────────────────────────────────────
Select:
Where DATE.OF.BIRTH is From: &
and DATE.OF.BIRTH is Thru: &
\
SELECT_FROM1
SELECT_THRU1
\
\R PREPORT
PAEDIATRIC SURVEILLANCE ON : &
============================
& & &
RECALL DATE: &
PDATES:& & & &
\
TD
PATIENT.NAME
ADDRESS1
DATE.OF.BIRTH
COD.D[5]
PDATE1
PDATE2
PDATE3
PDATE4
\